HipBitmapFont

Undocumented in source.

Members

Functions

getFontWithSize
HipFont getFontWithSize(uint size)

This won't do anything in case of a bitmap font, as no one can change it.

getKerning
int getKerning(dchar current, dchar next)
Undocumented in source. Be warned that the author may not have intended to support it.
getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source. Be warned that the author may not have intended to support it.
getTexturePath
string getTexturePath()
Undocumented in source. Be warned that the author may not have intended to support it.
loadAtlas
bool loadAtlas(string data, string atlasPath)
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
bool loadTexture(IHipTexture t)
Undocumented in source. Be warned that the author may not have intended to support it.
readTexture
void readTexture(string texturePath)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromFile
HipBitmapFont fromFile(string atlasPath, string texturePath)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

atlasPath
string atlasPath;

The atlas path is saved inside the class

atlasTexturePath
string atlasTexturePath;

This variable is defined when the atlas is being read

charactersCount
uint charactersCount;

Use that property to know how many characters was read inside the atlas

kerning
HipFontKerning kerning;
Undocumented in source.

Inherited Members

From HipFont

getKerning
int getKerning(dchar current, dchar next)
Undocumented in source.
getKerning
int getKerning(const(HipFontChar)* current, const(HipFontChar)* next)
Undocumented in source.
_texture
IHipTexture _texture;

Underlying GPU texture

_characters
HipFontChar[dchar] _characters;
Undocumented in source.
_spaceWidth
uint _spaceWidth;

Saves the space width for the bitmap text process the ' '. If the original spaceWidth is == 0, it won't draw a quad

_lineBreakHeight
uint _lineBreakHeight;

How much the line break will offset in Y the next char

characters
HipFontChar[dchar] characters()

////Properties///////

characters
const(HipFontChar[dchar]) characters()
Undocumented in source. Be warned that the author may not have intended to support it.
texture
IHipTexture texture()
Undocumented in source. Be warned that the author may not have intended to support it.
spaceWidth
uint spaceWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
spaceWidth
uint spaceWidth(uint newWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
lineBreakHeight
uint lineBreakHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
lineBreakHeight
uint lineBreakHeight(uint newHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
wordWrapRange
HipWordWrapRange wordWrapRange(dstring text, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
calculateTextBounds
void calculateTextBounds(dstring text, uint[] linesWidths, int biggestWidth, int height, int maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
getFontWithSize
HipFont getFontWithSize(uint size)
Undocumented in source.

Meta